package com.medata.repository;


import com.medata.dataObject.BlackListForIp;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author ：zb
 * @date ：Created in 2019/3/26 0026 9:18
 * @description：
 */

public interface BlackListForIpRepository extends JpaRepository<BlackListForIp,String> {
    List<BlackListForIp> findByBlackIp(String ip);
    void deleteByBlackIp(String ip);
    Page<BlackListForIp> findAll(Pageable pageable);
}
